package com.zcm.consumer.feign;

import com.zcm.consumer.dao.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wxhntmy
 */
@FeignClient("eureka-provider") //调用端服务名
public interface RemoteService {

    @GetMapping(value = "/goods/findOne/{id}")
    Goods findGoodsById(@PathVariable("id") int id);


}
